<title>邀请好友</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<script type="text/javascript" src="#(assets)/js/qrcode.min.js"></script>
<script type="text/javascript" src="#(assets)/js/jquery-2.2.4.min.js"></script>
#@checkToken()
<body bgcolor="#fff" style="margin:0px;">
<div align="center" style="margin-top:20px;">
	<div style="font-size:14px;">
		每成功邀请一位好友投资
	</div>
	<div  style="font-size:18px;margin-top:10px;">
		邀请人可获得要有首笔投资收益的10%
	</div>
	<div style="font-size:14px;margin-top:10px;">
		作为邀请奖励，邀请越多，奖励越多
	</div>
</div>
<div align="center" style="font-size:14px;">
	<img style="width:40px;position:relative;top:120px;" src="#(assets)/images/mobile/logo2.png">
	<div style="margin-top:20px;" id="qrcode"></div>
	<div style="margin-top:5px;z-index:50;font-size:14px;margin-top:20px;">扫一下我,就可以快速注册了哦！</div>
	
</div>
	<script>
	$(document).ready(function(){
		#if("$!{session.getAttribute('equipmentNo')}"=="")
			layer.msg('请先登陆！',{icon:2,time:1000}, function(){
				window.location.href="/app/page?name=login&redirect=inviteFriend"; 
			});
		#else
		var url = "#(path)/user/refereeLink?token=#(session.token??)";
		$.getJSON(url, function(data) {
			console.log(data);	
			// 设置参数方式
			var qrcode = new QRCode('qrcode', {
			  text: data.data.link,
			  width: 150,
			  height: 150,
			  colorDark : '#000000',
			  colorLight : '#ffffff',
			  correctLevel : QRCode.CorrectLevel.H
			});
			
			
		});	
		#end
	});	
	</script> 
</body>